/*
 * Copyright (c) 2022.  Asiacom Technology Inc. All rights reserved
 */

package com.swanclouds.api.systems;

import com.swanclouds.common.RestService;
import com.swanclouds.model.common.ActionResponse;
import com.swanclouds.model.systems.BondReq;
import com.swanclouds.redfish.systems.domain.BondResp;

/**
 * @author 张立强
 * @version jdk1.8.0
 */
public interface NetworkBondService extends RestService {

	/**
	 * 查询 Bond 资源信息
	 * @return the bond info
	 */
	BondResp get();

	/**
	 * 配置服务器当前 Bond 资源信息
	 * PATCH https://{bmc_ip}/redfish/v1/Systems/{system_id}/NetworkBonding
	 * @param bondingEnable 设置 Bond 使能
	 * @return response
	 */
	ActionResponse config(BondReq bondingEnable);
}
